package com.gy.mbaselibrary.net.https;

import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * 创建者：高业
 * 邮箱：15234150168@163.com
 * 时间：2018/1/31
 * 类描述：https的认证类
 * 修改人：
 * 修改时间：2018/1/31
 * 修改备注：
 */
public class TrustAllCerts implements X509TrustManager {
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) {}

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) {}

    @Override
    public X509Certificate[] getAcceptedIssuers() {return new X509Certificate[0];}
}
